package io.renren.modules.wap.service;

import io.renren.common.service.CrudService;
import io.renren.modules.wap.dto.ExternalOrdersDTO;
import io.renren.modules.wap.entity.ExternalOrdersEntity;

import java.util.List;

/**
 * 对接三方订单
 *
 * @author Liang Pei 
 * @since 1.0.0 2025-01-02
 */
public interface ExternalOrdersService extends CrudService<ExternalOrdersEntity, ExternalOrdersDTO> {
    /**
     * 通过手机号和appId查询订单信息
     * @param phone
     */
    List<ExternalOrdersEntity> getByPhoneAndAppId(String phone, String appId);

    /**
     * 查询日期内订单
     */
    List<ExternalOrdersEntity> getByDate(String startDate, String endDate);

    /**
     * 通过订单号查询订单信息

     */
    ExternalOrdersEntity getByOrderNo(String orderNo);
}